
<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台登录</title>
    <meta name="renderer" content="webkit">
    <!--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">-->
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <#--<meta http-equiv="Cache-Control" content="no-siteapp" />-->

    <#--<link rel="shortcut icon" href="<%=request.getContextPath()%>/plugin/x-admin/favicon.ico" type="image/x-icon" />-->
    <link rel="stylesheet" href="${re.contextPath}/plugin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="${re.contextPath}/plugin/x-admin/css/font.css">
    <link rel="stylesheet" href="${re.contextPath}/plugin/x-admin/css/xadmin.css">
    <script type="text/javascript" src="${re.contextPath}/plugin/layui/layui.all.js"></script>
    <script type="text/javascript" src="${re.contextPath}/plugin/jquery/jquery-3.2.1.min.js"></script>

</head>
<body class="login-bg">

<div class="login">


    <form method="post" action="/login" class="layui-form" >

        <div class="box">
            <div class="logo-a">
                <div class="img"></div>
            </div>
            <div class="input-box">
                <div class="boxadad">
                    <div class="left"></div>
                    <div class="right">
                        <input name="username" placeholder="用户名" autocomplete="off"  type="text" lay-verify="username" class="inpoda" >
                    </div>
                </div>
            </div>
            <div class="input-box">
                <div class="boxadad">
                    <div class="lefttrr"></div>
                    <div class="right">
                        <input name="password" lay-verify="password" placeholder="密码" autocomplete="off"  type="password" class="inpoda">
                    </div>
                </div>
            </div>
<#--            <div  class="code-class layui-inline">-->
<#--                <div class="box-fasa">-->
<#--                    <div class="lefttrr"></div>-->
<#--                    <div class="layui-input-inline">-->
<#--                        <input type="text" name="code" style="width:150px;height:35px;border: none;background: none !important;" autocomplete="off" lay-verify="code" placeholder="验证码"   class="layui-input">-->
<#--                    </div>-->
<#--                    <div class="layui-input-inline">-->
<#--                        <img src="" id="code" style="width: 80px;height: 35px;">-->
<#--                    </div>-->
<#--                </div>-->
<#--            </div>-->
            <div class="input-box">
                <input value="登录" lay-submit lay-filter="login" class="btn-xaxxa" type="submit">
            </div>
            <div class="left-a"></div>
            <div class="right-a"></div>
        </div>


        <#--<div>
        <label class="layui-form-label" style="width:40px;padding: 9px 0px;">记住我</label>  由于不好验证 目前去掉
            <input type="checkbox"   name="rememberMe" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF">
        </div>-->
    </form>
</div>

<style>

</style>
<script>
  var layer;
  $(function  () {
    layui.use(['form','layer'], function(){
      var form = layui.form;
      form.verify({
        username:function(v){
          if(v.trim()==''){
            return "用户名不能为空";
          }
        }
        ,password:function(v){
          if(v.trim()==''){
            return "密码不能为空";
          }
        }
        // ,code:function(v){
        //       if(v.trim()==''){
        //           return '验证码不能为空';
        //       }
        //   }
      });

      form.render();
    });
    layer = layui.layer;
    var msg='${message}';
    if(msg.trim()!=""){
        layer.msg(msg, {icon: 5,anim:6,offset: 't'});
    }
      // $("#code").click(function(){
      //     var url = "/getCode?"+new Date().getTime();
      //     this.src = url;
      // }).click().show();
    // $('#code').on('mouseover',function(){
    //     layer.tips('点击刷新验证码', this,{time:1000});
    // });
  })

  if (window != top)
    top.location.href = location.href;
</script>


<!-- 底部结束 -->
</body>
</html>
